package com.cn.jiyun;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.jiyun.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ai-service")
public interface AiClient {
    @PostMapping("/ai/backinfo")
    public Result<String> backinfo(@RequestParam("question") String question) throws InputRequiredException;
}
